| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | 8 | import { Body, Controller, Get, Post } from '@nestjs/common'; |
|
| 22 | |||
| 23 | @Post('create') |
||
| 24 | @ApiOperation({ summary: 'Create a new city' }) |
||
| 25 | @ApiResponse({ |
||
| 26 | status: 201, |
||
| 27 | description: 'City created successfully', |
||
| 28 | type: City, |
||
| 29 | }) |
||
| 30 | 8 | async createACity(@Body() createCityDto: CreateCityDto) { |
|
| 31 | 1 | return await this.citiesService.createCity(createCityDto); |
|
| 32 | } |
||
| 34 |